<template>
  <div id="userdetail">
    <h1>用户</h1>
    <p>{{msg}} {{$route.params.userId}}</p>
  </div>
</template>

<script>

export default {
  name: 'userdetail',
  data () {
    return {
      msg: "user detail:"
    }
  },
  computed: {
    finalMsg () {
      return this.msg + this.$route.params.userId
    }
  }
}
</script>

<style scoped>

</style>
